<?php

class Log_Adapter_Mongo extends Log_Adapter
{
	protected $_path = null;

	public function __construct($name, $config = null)
	{

	}

	public function write($message, $level = null)
	{
		if(null == $level){
			$level =  Logger::INFO;
		}
		$item = Mongo_Document::factory('core/log');

		$item -> message = $message;
		$item -> level = $level;
		$item -> timestamp = time();
		$item -> save();
	}

}
